<?php
	include 'connect.php';
    if (is_numeric($_GET['utility_id'])) {
        $id = $_GET['utility_id'];
        $nome = mysql_real_escape_string(htmlspecialchars($_POST['nome']));
        $url = mysql_real_escape_string(htmlspecialchars($_POST['url']));
        mysql_query("UPDATE utility SET utility_nome='$nome', utility_url='$url' WHERE utility_id='$id'") or die(mysql_error()); 
        echo '<script language=javascript>document.location.href="./../utility.php"</script>';
	}
?>